/*
 * @Author: wurangkun
 * @Date: 2024-05-22 11:58:07
 * @LastEditTime: 2024-05-22 18:02:30
 * @LastEditors: wurangkun
 * @FilePath: \flutter_example\lib\components\KLabel.dart
 * @Description: 
 */
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class KLabel extends StatefulWidget {
  final Widget child;
  final String label;
  const KLabel({super.key, required this.child, this.label = 'label'});

  @override
  State<KLabel> createState() => _KLabelState();
}

class _KLabelState extends State<KLabel> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Container(
          alignment: Alignment.topLeft,
          margin: EdgeInsets.only(bottom: 32.h),
          child: Text(
            widget.label,
            style: TextStyle(fontSize: 32.sp, color: const Color(0xFF333333)),
          ),
        ),
        widget.child,
        // Add more widgets as needed
      ],
    );
  }
}
